package org.dromara.netbar.domain.bo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 充值余额Model
 * @author ZhouWenTao
 * @create 2025-07-17 11:14
 */
@Data
public class NetbarAmountBo extends BaseEntity {
    @NotBlank(message = "请选择会员", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;
    @NotBlank(message = "请输入有效的充值金额", groups = { AddGroup.class, EditGroup.class })
    private Long amount;
    @NotBlank(message = "请选择支付方式", groups = { AddGroup.class, EditGroup.class })
    private String paymentMethod;

    // 充值后操作 (activation-激活, offline-下机)
    private String afterMethod;

    // 使用卡券 [{卡券ID:数量},]
    private Map<Long,Integer> useCouponMap;

    // 使用卡券IdList
    private List<Long> useCouponMemberIds;
}
